package manager;

import entities.Department;
import entities.Holiday;
import entities.Shift;
import entities.ShiftRequest;
import entities.User;
import java.util.ArrayList;

public class GenericDriver {

    private DataManager dataManager;

    public GenericDriver(DataManager dataManager) {
        this.dataManager = dataManager;
    }

    public ArrayList<Department> showDepartment() {
        return dataManager.showDepartment();
    }

    public ArrayList<Holiday> showHoliday() {
        return dataManager.showHoliday();
    }

    public ArrayList<Shift> showShift() {
        return dataManager.showShift();
    }
    
    public Shift showShiftByID(int id) {
        return dataManager.showShiftByID(id);
    }

    public boolean updateProfile(int id, String title, String phone, String emailAddress, String address) {
        return dataManager.updateProfile(id, title, phone, emailAddress, address);
    }

    public boolean changePass(int id, String oldPass, String newPass) {
        return dataManager.changePass(id, oldPass, newPass);
    }
    
    public ArrayList<User> showUser() {
        return dataManager.showUser();
    }
    
    public ArrayList<User> showHead() {
        return dataManager.showHead();
    }
    
    public ArrayList<User> showEmployeeByDID(int did) {
        return dataManager.showEmployeeByDID(did);
    }
    
    public ArrayList<ShiftRequest> showSRByEID(int id) {
        return dataManager.showSRByEID(id);
    }
    
    public boolean insertShiftRequest(ShiftRequest request) {
        return dataManager.insertShiftRequest(request);
    }
}
